package com.more.offer.designpatterns.composition;

/**
 * @author pinoc
 * @date 2021/10/28
 * @description
 */
public class HrDepartment extends Department{

	public HrDepartment() {
	}

	public HrDepartment(String name) {
		super(name);
	}

	@Override
	public void addDept(Department dept) {

	}

	@Override
	public void showDept(int depth) {
		StringBuilder sb = new StringBuilder("");
		for (int i = 0; i < depth; i++) {
			sb.append("--");
		}
		System.out.println(new String(sb) + this.getName());
	}
}
